package com.jumaojiang.vo;

import com.jumaojiang.pojo.Chapter;
import com.jumaojiang.pojo.RsFile;
import com.jumaojiang.pojo.RsVideo;

import java.util.ArrayList;
import java.util.List;

/**
 * javaee-rs
 *
 * @author wuhanwei
 * @version 1.0
 * @date 2021/11/8
 */
public class QueryVo {

    private List<ResourceFile> fileList = new ArrayList<>();

    private List<ResourceVideo> videoList = new ArrayList<>();

    // 章节标题id
    private int chaId;

    public static class ResourceFile{
        // 文件id
        private Integer fileId;

        // 小节标题
        private String sectionTitle;

        // 文件名
        private String fileName;

        // 一条资源文件的所有下载链接
        List<String> urlList = new ArrayList<>();

        public Integer getFileId() {
            return fileId;
        }

        public void setFileId(Integer fileId) {
            this.fileId = fileId;
        }

        public String getSectionTitle() {
            return sectionTitle;
        }

        public void setSectionTitle(String sectionTitle) {
            this.sectionTitle = sectionTitle;
        }

        public String getFileName() {
            return fileName;
        }

        public void setFileName(String fileName) {
            this.fileName = fileName;
        }

        public List<String> getUrlList() {
            return urlList;
        }

        public void setUrlList(List<String> urlList) {
            this.urlList = urlList;
        }
    }

    public static class ResourceVideo{
        // 视频id
        private Integer videoId;
        // 小节标题
        private String sectionTitle;
        // 基本信息
        private String videoName;
        private String videoUrl;
        private String videoM3u8;

        public Integer getVideoId() {
            return videoId;
        }

        public void setVideoId(Integer videoId) {
            this.videoId = videoId;
        }

        public String getSectionTitle() {
            return sectionTitle;
        }

        public void setSectionTitle(String sectionTitle) {
            this.sectionTitle = sectionTitle;
        }

        public String getVideoName() {
            return videoName;
        }

        public void setVideoName(String videoName) {
            this.videoName = videoName;
        }

        public String getVideoUrl() {
            return videoUrl;
        }

        public void setVideoUrl(String videoUrl) {
            this.videoUrl = videoUrl;
        }

        public String getVideoM3u8() {
            return videoM3u8;
        }

        public void setVideoM3u8(String videoM3u8) {
            this.videoM3u8 = videoM3u8;
        }
    }

    public QueryVo() {
    }

    public List<ResourceFile> getFileList() {
        return fileList;
    }

    public void setFileList(List<ResourceFile> fileList) {
        this.fileList = fileList;
    }

    public List<ResourceVideo> getVideoList() {
        return videoList;
    }

    public void setVideoList(List<ResourceVideo> videoList) {
        this.videoList = videoList;
    }

    public int getChaId() {
        return chaId;
    }

    public void setChaId(int chaId) {
        this.chaId = chaId;
    }
}
